body,
html,
#app {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-size: 12px;
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', 'Hiragino Sans GB', '微软雅黑', 'WenQuanYi Micro Hei', STHeiti, SimSun, sans-serif;
  cursor: url(https://cdn.jsdelivr.net/gh/YunYouJun/cdn/css/md-cursors/pointer.cur), auto;
}


.page-container {
  padding: 40px 12px;
  width: 1200px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  flex-direction: row;

  main {
    width: 900px;
  }
  aside {
    width: 300px;
    margin-left: 20px;
    min-height: 550px;
  }
}


/* 辅助样式 */

.el-col {
  min-height: 1px
}

.fr {
  float: right;
}

.fl {
  float: left;
}

input:-webkit-autofill {
  -webkit-text-fill-color: #ccc !important;
  // -webkit-box-shadow: 0 0 0px 1000px #878787 inset;
  transition: background-color 5000s ease-in-out 0s;
}


&::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 6px;
}

&::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.27);
}

&::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.05);
  background: #ededed;
  border-radius: 10px;
}

// .clearfix:after {
//   visibility: hidden;
//   display: block;
//   font-size: 0;
//   content: " ";
//   clear: both;
//   height: 0;
// }

// .clearfix {
//   *zoom: 1;
// }
.m-upload {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  border-radius: 5px;
  transition: all 0.3s;
  padding: 5px;
  box-sizing: border-box;
  background-color: #eaeaea;
  border: 1px dashed #d9d9d9;

  .uploader-icon {
    font-size: 2rem;
    color: #aaa;
  }

  .el-image,
  img,
  video {
    max-width: 100%;
    max-height: 100%;
  }

  .options-icon {
    position: absolute;
    display: none;
    top: -5px;
    right: 0;
    color: #d41d31;
    font-size: 1.6rem;
    box-sizing: border-box;
    cursor: pointer;

    i {
      margin-right: 5px;
    }
  }

  &:hover {
    border-color: #f83e4bff;

    .uploader-icon {
      color: #f83e4bff;
    }

    .options-icon {
      display: block;
    }
  }
}

// 颜色
.m-white {
  color: #fff;
}

.m-primary {
  color: #f83e4bff;
}

.m-danger {
  color: #96081a;
}

.m-success {
  color: #67C23A;
}

.m-warning {
  color: #E6A23C;
}

.m-friend {
  color: #409EFF;
}

.m-info {
  color: #909399;
}

.clearfix:before,
.clearfix:after {
  content: '';
  display: table;
}

.clearfix:after {
  clear: both;
  overflow: hidden;
}

.clearfix {
  zoom: 1;
}

.limit-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limit-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.limit-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

[v-cloak] {
  display: none;
}

input {
  outline: none;
  border: none;
  background-color: rgba(0, 0, 0, 0);
}


h2,
h3,
h4,
h5,
p {
  margin: 0;
}


/* 清除浮动 */

.clearfix::after {
  content: "\20";
  display: block;
  height: 0;
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* 不可点击 */

.notclick {
  pointer-events: none;
}


// 禁止选择图片
img {
  user-select: none;
}

// 自己写的样式

// 自定义按钮
.login-form .m-btn {
  transition: .3s all;
  cursor: pointer;
  color: #fff;
  text-align: center;
  border: 1px solid #96081a;
  background-color: #96081a;
  border-radius: 3px;
}

.login-form .m-btn:hover {
  color: #96081a;
  border: 1px solid #96081a;
  background-color: rgba(0, 0, 0, 0);
}

// 自定义时间线样式
.m-time-line {
  display: flex;
  flex-flow: column;

  .timeline-item {
    position: relative;
    display: flex;
    flex-flow: row;
    padding-top: 30px;
    padding-left: 30px;
    margin-bottom: 20px;

    &::before {
      position: absolute;
      content: "";
      left: 15px;
      top: 30px;
      height: calc(100% - 30px);
      width: 1px;
      background-color: #ccc;
    }

    &:last-child {
      &::before {
        display: none;
      }
    }

    h4 {
      position: absolute;
      top: 0;
      font-size: 1.4rem;
      color: #f83e4bff;
      line-height: 20px;
      white-space: pre;

      &::after {
        position: absolute;
        content: "";
        left: -20px;
        top: 50%;
        margin-top: -5px;
        height: 10px;
        width: 10px;
        border-radius: 10px;
        background-color: #f83e4bff;
      }

      &::before {
        position: absolute;
        content: "";
        left: -24px;
        top: 50%;
        margin-top: -9px;
        height: 10px;
        width: 10px;
        padding: 3px;
        border: 1px solid #f83e4bff;
        border-radius: 10px;
        background-color: #fff;
      }

      :deep(.el-link) {
        position: relative;
        top: -1px;
        margin-left: 8px;
      }
    }

    .item-content {
      max-width: 50%;
      color: #999;
    }

    .img-wrapper {
      padding-left: 50px;
      width: 50%;
      box-sizing: border-box;

      & > img {
        max-width: 100px;
        max-height: 100px;
        margin-right: 15px;
        cursor: pointer;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      }
    }
  }
}


// 时间线在左侧的时间轴
.m-lf-time-line {
  height: 315px;
  font-size: 1.4rem;
  padding-left: 140px;

  .timeline-item {
    position: relative;
    color: #999;
    padding-top: 25px;
    padding-left: 30px;
    margin-bottom: 20px;

    &::before {
      position: absolute;
      content: "";
      left: 15px;
      top: 25px;
      height: calc(100% - 10px);
      width: 1px;
      background-color: #ccc;
    }

    &:last-child {
      &::before {
        display: none;
      }
    }

    .item-head {
      position: absolute;
      top: 0;
      line-height: 20px;
      white-space: pre;

      &::after {
        position: absolute;
        content: "";
        left: -18px;
        top: 50%;
        margin-top: -4px;
        height: 6px;
        width: 6px;
        border-radius: 10px;
        background-color: #ccc;
      }

      &::before {
        position: absolute;
        content: "";
        left: -22px;
        top: 50%;
        margin-top: -8px;
        height: 6px;
        width: 6px;
        padding: 3px;
        border: 1px solid #ccc;
        border-radius: 10px;
        background-color: #fff;
      }
    }

    .item-time {
      position: absolute;
      top: 0;
      left: -135px;
      line-height: 20px;
    }

    .img-wrapper {
      padding-left: 50px;
      width: 50%;
      box-sizing: border-box;

      & > img {
        max-width: 100px;
        max-height: 100px;
        margin-right: 15px;
        cursor: pointer;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      }
    }

    &.active,
    &:hover {
      color: #000;

      .item-content {
        color: #000;
      }

      .item-head {
        &::after {
          background-color: #f83e4bff;
        }

        &::before {
          border-color: #f83e4bff;
        }
      }
    }
  }
}

// a链接鼠标样式修改
a {
  cursor: url(https://cdn.jsdelivr.net/gh/YunYouJun/cdn/css/md-cursors/link.cur), auto !important;
}

.trigger {
  transition: all .3s;

  &:hover {
    color: #4dd2ff;
    cursor: url(https://cdn.jsdelivr.net/gh/YunYouJun/cdn/css/md-cursors/link.cur), auto !important;
  }
}

// 侧边板块边框样式
.aside-item {
  margin-bottom: 2rem;
  transition: all 0.3s;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.08);

  &:hover {
    box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.22);
  }

  .aside-header {
    padding: 1.5rem 2rem;
    font-size: 1.8rem;
    border-bottom: 1px solid #d1d1d1;
  }

  .aside-content {
    padding: 1.5rem 2rem;
  }
}
